// pages/loginWelcome/loginGreeting.ts
import { ComponentWithStore } from 'mobx-miniprogram-bindings'
import { userStore } from '../../store/userStore'
ComponentWithStore({
  storeBindings: {
    store: userStore,
    fields: ['userInfo'],
    actions: []
  },
  /**
   * 页面的初始数据
   */
  data: {

  },
  methods: {
    enter() {
      // 跳转到首页
      wx.switchTab({
        url: '/pages/index/index',
      })
    },
  }
})
